package com.aaa.book_mall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;


/**
 * @Description: 出库申请表
 * @ClassName: Out
 * @Author: fengyun
 * @Date: 2021/1/20 10:37
 * @Version: 1.0
 */
@Component
public class Out {
    private Integer id;
    private String outnumber;
    private Integer staffid;
    private String staffname;
    private Integer bookcount;
    private Double  bookprice;
    /*//数据从前台传到后台时，日期是字符串无法封装成Date类型，使用以下注解解决问题。
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //数据从后台发到前台显示时间戳格式，使用以下注解解决问题。
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")*/
    private Date createdate;
    private String status;

    private String scopedate;

    private Integer page;
    private Integer limit;

    public Out() {
    }

    public Out(Integer id, String outnumber, Integer staffid, String staffname, Integer bookcount, Double bookprice, Date createdate, String status) {
        this.id = id;
        this.outnumber = outnumber;
        this.staffid = staffid;
        this.staffname = staffname;
        this.bookcount = bookcount;
        this.bookprice = bookprice;
        this.createdate = createdate;
        this.status = status;
    }

    public Out(Integer id, String outnumber, Integer staffid, String staffname, Integer bookcount, Double bookprice, Date createdate, String status, Integer page, Integer limit) {
        this.id = id;
        this.outnumber = outnumber;
        this.staffid = staffid;
        this.staffname = staffname;
        this.bookcount = bookcount;
        this.bookprice = bookprice;
        this.createdate = createdate;
        this.status = status;
        this.page = page;
        this.limit = limit;
    }

    public String getScopedate() {
        return scopedate;
    }

    public void setScopedate(String scopedate) {
        this.scopedate = scopedate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOutnumber() {
        return outnumber;
    }

    public void setOutnumber(String outnumber) {
        this.outnumber = outnumber;
    }

    public Integer getStaffid() {
        return staffid;
    }

    public void setStaffid(Integer staffid) {
        this.staffid = staffid;
    }

    public String getStaffname() {
        return staffname;
    }

    public void setStaffname(String staffname) {
        this.staffname = staffname;
    }

    public Integer getBookcount() {
        return bookcount;
    }

    public void setBookcount(Integer bookcount) {
        this.bookcount = bookcount;
    }

    public Double getBookprice() {
        return bookprice;
    }

    public void setBookprice(Double bookprice) {
        this.bookprice = bookprice;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    @Override
    public String toString() {
        return "Out{" +
                "id=" + id +
                ", outnumber='" + outnumber + '\'' +
                ", staffid=" + staffid +
                ", staffname='" + staffname + '\'' +
                ", bookcount=" + bookcount +
                ", bookprice=" + bookprice +
                ", createdate=" + createdate +
                ", status='" + status + '\'' +
                ", scopedate='" + scopedate + '\'' +
                ", page=" + page +
                ", limit=" + limit +
                '}';
    }
}
